package com.lyn.p1;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/index")
public class IndexController {
	
	@Autowired
	private Blog blog;
	
	@Autowired
	private Book book;
	
	
	@GetMapping("/m1")
	public void m1() {
		System.out.println(blog.toString());
		System.out.println(book.toString());
	}
}
